/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package predicatesAndQuerys;

import com.db4o.query.Predicate;
import logicaDePredicados.PredicateLogic;

/**
 *
 * @author Francisco Gindre
 */
public class RetrieveAPredicateLogic extends Predicate<PredicateLogic> {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private static PredicateLogic toRetrieve;
	public RetrieveAPredicateLogic (PredicateLogic aPredicate){
		super();
		toRetrieve=aPredicate;

	}
	@Override
	public boolean match(PredicateLogic candidate) {

		return candidate.equals(toRetrieve);
	}

}
